package com.train.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 计划进度记录表
 * @TableName user_plan_progress
 */
@TableName(value ="user_plan_progress")
@Data
public class UserPlanProgress implements Serializable {
    /**
     * 进度ID
     */
    @TableId(type = IdType.AUTO)
    private Long progressId;

    /**
     * 计划ID
     */
    private Long planId;

    /**
     * 项目ID
     */
    private Long itemId;

    /**
     * 用户ID
     */
    private Long userId;

    /**
     * 本次观看时长(秒)
     */
    private Integer watchDuration;

    /**
     * 总进度(百分比)
     */
    private Integer totalProgress;

    /**
     * 创建时间
     */
    private Date createTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}